# loc/main_page_locators.py
from selenium.webdriver.common.by import By

class MainPageLocators:
    """主页面（登录后）的公共元素定位器"""
    # 顶部用户名，用于验证登录成功
    USER_GREETING = (By.XPATH, '/html/body/div/div/header/nav/div/div/span')

    # 左侧主菜单
    MENU_PERSONAL_FINANCE = (By.LINK_TEXT, '个人理财')
    MENU_FINANCIAL_TOOLS = (By.LINK_TEXT, '金融工具')
    MENU_PERSONAL_CENTER = (By.LINK_TEXT, '个人中心')